package com.springcloud.sc.ucp.v5.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("ucp_server_info")
public class UcpServerInfo extends Model<UcpServerInfo> {

    private static final long serialVersionUID = 1L;
    @TableId(value="id", type= IdType.ID_WORKER_STR)
    private String id;

    @TableField("ucp_ip")
    private String ucpIp;

    @TableField("ucp_name")
    private String ucpName;

    @TableField("ucp_password")
    private String ucpPassword;

    @TableField("ucp_port")
    private String ucpPort;

    @TableField("ucp_flag")
    private String ucpFlag;

    protected Serializable pkVal() {
        return this.id;
    }

}
